<div id="layout_main_top">

</div>
<div id="layout_main">

{if $smarty.session.level gte $USER_RIGHTS.attribute_add}
	<div class="admin_menu">
		<a href='index.php?page=admin_attribute&action=new'><img src="./images/buttons/raid_add.png" alt="" /> Add Attribute</a>
	</div>
{/if}

<DIV class="layout_large_table_top">

</DIV>
<DIV class="layout_large_table">
<table id="main_table" cellspacing='0' >
<tr class="menu_header">
	<th>#</th>
	<th align='left'>
			Name

	</th>
	<th align='left'>
			Shortname
	</th>
	<th align='left'>
			Type
	</th>
	<th>
			Description
	</th>
	<th>
			Picture
	</th>
	<th>
		&nbsp;
	</th>
</tr>

{foreach name=attributes item=attribute_item from=$attribute}


	<tr class="{cycle values="row_1,row_2" advance=true}" id="user{$single_user.user_id}">
	<td>{$attribute_item.download_id}</td>
	<td align='left'>{$attribute_item.name}</td>
	<td align='left'>{$attribute_item.short_name}</td>
	<td align='left'>{$attribute_item.type}</td>
	<td align='center'>{$attribute_item.description}</td>
	<td align='center'><img src="./images/attributes/{$attribute_item.picture_link}" alt="picture" /></td>
	<td>
	{if $smarty.session.level gte $USER_RIGHTS.attribute_delete}
	<img src="./images/buttons/delete.gif" alt="" onclick="javascript:deleteAttribute({$attribute_item.id}, 'admin_attribute')" />
	{/if}
	{if $smarty.session.level gte $USER_RIGHTS.attribute_change}
	<a href='index.php?page=admin_attribute&action=edit&attribute_id={$attribute_item.id}'><img src="./images/buttons/edit.gif" alt="" width="14" height="14" {popup text="Edit this attribute" center=#overlib_center# wrap=#overlib_wrap# offsety=#overlib_offsety# fgcolor=#overlib_fgcolor# bgcolor=#overlib_bgcolor#  textcolor=#overlib_textcolor#} /></a>
	{/if}
	</td>
</tr>

{foreachelse}
<tr class="{cycle values="row_1,row_2"}">
	<td colspan=8>No Attributes could be found.</td>
</tr>

{/foreach}

<tr class="{cycle values="row_1,row_2"}">
	<td colspan=8>

	</td>
</tr>

<tr class="menu_footer">
	<td colspan=8></td>
</tr>



</table>
</div>

<DIV class="layout_large_table_bottom">

</DIV>
</div>
<div id="layout_main_bottom">

</div>
